API Browser

Method

WithContext

func WithContext<TError>(message: string) -> ContextError<TError> where TError: IError

Declaring type: ErrorExtensions<TError>
Namespace: System
Assembly: Raven.Core.dll
Source file: Error.rvn

Extension from ErrorExtensions<TError>.WithContext

Wraps this error with an additional contextual message.

Parameters

Name Type Description
self TError
message String The contextual message.

Return value

ContextError<TError>

A contextual error whose cause is this error.